package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.AiModelClassification;
import com.ruoyi.system.mapper.AiModelClassificationMapper;
import com.ruoyi.system.service.IAiModelClassificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AI模型分类Service业务层处理
 * 
 * @author r
 * @date 2025-01-09
 */
@Service
public class AiModelClassificationServiceImpl implements IAiModelClassificationService 
{
    @Autowired
    private AiModelClassificationMapper aiModelClassificationMapper;

    /**
     * 查询AI模型分类
     * 
     * @param id AI模型分类主键
     * @return AI模型分类
     */
    @Override
    public AiModelClassification selectAiModelClassificationById(Long id)
    {
        return aiModelClassificationMapper.selectAiModelClassificationById(id);
    }

    /**
     * 查询AI模型分类列表
     * 
     * @param aiModelClassification AI模型分类
     * @return AI模型分类
     */
    @Override
    public List<AiModelClassification> selectAiModelClassificationList(AiModelClassification aiModelClassification)
    {
        return aiModelClassificationMapper.selectAiModelClassificationList(aiModelClassification);
    }

    /**
     * 新增AI模型分类
     * 
     * @param aiModelClassification AI模型分类
     * @return 结果
     */
    @Override
    public int insertAiModelClassification(AiModelClassification aiModelClassification)
    {
        return aiModelClassificationMapper.insertAiModelClassification(aiModelClassification);
    }

    /**
     * 修改AI模型分类
     * 
     * @param aiModelClassification AI模型分类
     * @return 结果
     */
    @Override
    public int updateAiModelClassification(AiModelClassification aiModelClassification)
    {
        return aiModelClassificationMapper.updateAiModelClassification(aiModelClassification);
    }

    /**
     * 批量删除AI模型分类
     * 
     * @param ids 需要删除的AI模型分类主键
     * @return 结果
     */
    @Override
    public int deleteAiModelClassificationByIds(Long[] ids)
    {
        return aiModelClassificationMapper.deleteAiModelClassificationByIds(ids);
    }

    /**
     * 删除AI模型分类信息
     * 
     * @param id AI模型分类主键
     * @return 结果
     */
    @Override
    public int deleteAiModelClassificationById(Long id)
    {
        return aiModelClassificationMapper.deleteAiModelClassificationById(id);
    }
}
